<template>
  <div>
    <div class="app-container clearfix pageHeader">
      <div class="header fl">{{$route.meta.title}}</div>
    </div>

    <div class="app-container margin-content padding-content">
      表单业务

      <el-form
        :model="dataForm"
        ref="dataForm"
        label-width="90px">


        <div style="text-align: right">
          <el-button type="primary">查询</el-button>
        </div>
      </el-form>
    </div>


    <div class="app-container margin-content padding-content">
      <el-table
        :key="tableKey"
        :data="tableData"
        v-loading="loading"
        element-loading-text="正在加载..."
        style="width: 100%;">

        <el-table-column label="集装箱号"></el-table-column>
        <el-table-column label="到港日期"></el-table-column>
        <el-table-column label="箱主代码"></el-table-column>
        <el-table-column label="进出口"></el-table-column>
        <el-table-column label="重吉"></el-table-column>
        <el-table-column label="扣留标记"></el-table-column>
        <el-table-column label="堆场代码"></el-table-column>
        <el-table-column label="作业类型"></el-table-column>
        <el-table-column label="作业时间"></el-table-column>
        <el-table-column label="集装箱尺寸"></el-table-column>
        <el-table-column label="集装箱类型"></el-table-column>
        <el-table-column label="封条号"></el-table-column>
        <el-table-column label="港口"></el-table-column>
      </el-table>

      <div class="pagination-container align-right" v-show="tableData.length > 0">
        <el-pagination
          background
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page="dataForm.pageNum"
          :page-sizes="pageSizes"
          :page-size="dataForm.pageSize"
          layout="total, sizes, prev, pager, next, jumper"
          :total="total">
        </el-pagination>
      </div>
    </div>
  </div>
</template>

<script>
  import {page} from '@/utils/page'

  export default {
    name: 'arrivalWarning',
    data() {
      return {
        tableKey: 0,
        tableData: [],
        loading: false,
        dataForm: {},
        total: 0,
        pageSizes: page.pageSizes
      }
    },
    methods: {
      handleSizeChange(val) {
        this.dataForm.pageSize = val
      },
      handleCurrentChange(val) {
        this.dataForm.pageNum = val
      }
    }
  }
</script>

<style rel="stylesheet/scss" lang="scss" scoped="scope">

</style>
